﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ManageEventReceivers.aspx.cs" Inherits="TSB.SPEventReceiverManager.Layouts.TSB.SPEventReceiverManager.ManageEventReceivers" DynamicMasterPageFile="~masterurl/default.master" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
<style>
.tsblink { float:right; margin-right: 20px; }
.tsblink a { text-decoration:underline;}
span.tsb { color: #BBB;}
</style>
</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">

<asp:Literal ID="ltListDetails" runat="server">
<table class="ms-listedit ms-gb">
    <tr>
        <td class="ms-linksectionheader"><h3 class="ms-standardheader">Event Receivers</h3></td>
    </tr>
    <tr>
        <td>
            <table>
                 <tr>
                    <th class="ms-vb2">List:</th>
                    <td class="ms-vb2">{title}</td>
                </tr>
                <tr>
                    <th class="ms-vb2">Web Url:</th>
                    <td class="ms-vb2">{url}</td>
                </tr>
            </table>
        </td>
    </tr>
   
</table>        

</asp:Literal>

<asp:Repeater ID="rptReceivers" runat="server">
    <HeaderTemplate>
         <table class="ms-listedit ms-gb" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td class="ms-linksectionheader"><h3 class="ms-standardheader">Event Receivers</h3></td>
            </tr>
            <tr>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td>               
                
            <table border="0" cellpadding="0" cellspacing="0">
            <tr>
                <th class="ms-vh2-nofilter">Name</th>
                <th class="ms-vh2-nofilter">Type</th>
                <th class="ms-vh2-nofilter">Class</th>
            </tr>
    </HeaderTemplate>
    <ItemTemplate>
        <tr class="alt">
            <td class="ms-vb2">{name}</td>
            <td class="ms-vb2">{type}</td>
            <td class="ms-vb2">{class}<br /><span class="tsb">{assembly}</span></td>
        </tr>
    </ItemTemplate>
    <AlternatingItemTemplate>
        <tr>
            <td class="ms-vb2">{name}</td>
            <td class="ms-vb2">{type}</td>
            <td class="ms-vb2">{class}<br /><span class="tsb">{assembly}</span></td>
        </tr>
    </AlternatingItemTemplate>
    <FooterTemplate>
        </table>
        </td>
            </tr>
        </table>
    </FooterTemplate>
</asp:Repeater>


<asp:Literal ID="ltNoResults" runat="server" Visible="false">
<p>There are no Event Receivers attached to this list!</p>
</asp:Literal>


<asp:Literal ID="ltNoList" runat="server" Visible="false">
<table class="ms-listedit ms-gb">
    <tr>
        <td class="ms-linksectionheader"><h3 class="ms-standardheader">Event Receivers</h3></td>
    </tr>
    <tr>
        <td>This List could not be found or the List Id is invalid!</td>
    </tr>
</table>
</asp:Literal>

<asp:HyperLink ID="lnkBack" Text="Back to List Settings" runat="server" />


<p class="tsblink">v1.0 | <a href="http://www.thesharepointbaker.co.uk" target="_blank">www.thesharepointbaker.co.uk</a></p>
</asp:Content>

<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
Manage Event Receivers
</asp:Content>

<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" >
Manage Event Receivers
</asp:Content>
